package com.enums;

//合同类型
public enum ContractTypeEnum {

	zkh("zkh", "zkh"), agree("协议", "-1");

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String value = "";

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	ContractTypeEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static String getEnumValue(String name) {
		String valueString = "";
		for (ContractTypeEnum e : ContractTypeEnum.values()) {
			if (e.getName().equals(name)) {
				valueString = e.getValue();
			}
		}
		return valueString;
	}
}
